package com.sea.operate.service;


import com.sea.operate.entity.Related;

import java.io.InputStream;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface RelatedService {
    /**
     * 条件查询
     * @param related
     * @return
     */
    List<Related> findByCnd(Related related);
    /**
     * 新增
     * @param related
     * @return
     */
    int save(Related related);
    /**
     * 更新
     * @param related
     * @return
     */
    int usave(Related related);
    /**
     * 导入SKU
     * @param inputStream
     * @param fileName
     * @return
     * @throws Exception
     */
    void importRelated(InputStream inputStream, String fileName) throws Exception;
    /**
     * 根据ASIN查找
     * @param relatedAsin
     * @return
     */
    Related findByAsin(String relatedAsin,String relatedChannelName);
}
